package cn.zucc.edu.madq.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Message {
    private Integer messageId;

    private Integer messageFrom;

    private Integer messageTo;

    private Date messageCreatDate;

    private String messageContent;
    
    private Integer messageIsRead;
    
    public String getMessageCreatDateStr() {
    	SimpleDateFormat df=new SimpleDateFormat("yy-MM-dd HH.mm.ss");
        return df.format(messageCreatDate);
    }

    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getMessageFrom() {
        return messageFrom;
    }

    public void setMessageFrom(Integer messageFrom) {
        this.messageFrom = messageFrom;
    }

    public Integer getMessageTo() {
        return messageTo;
    }

    public void setMessageTo(Integer messageTo) {
        this.messageTo = messageTo;
    }

    public Date getMessageCreatDate() {
        return messageCreatDate;
    }

    public void setMessageCreatDate(Date messageCreatDate) {
        this.messageCreatDate = messageCreatDate;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

	public Integer getMessageIsRead() {
		return messageIsRead;
	}

	public void setMessageIsRead(Integer messageIsRead) {
		this.messageIsRead = messageIsRead;
	}
}